﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using TBCC.AMS.Commom;
using TBCC.UserManage;
using TBCC.Utility;


namespace TBCC.AMS
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {

            

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            SplashForm sp = new SplashForm();
            sp.Icon = global::TBCC.AMS.Properties.Resources.LOGO;
            sp.ShowDialog();

            LoginForm lf = new LoginForm();
            lf.Icon = global::TBCC.AMS.Properties.Resources.LOGO;
            if (lf.ShowDialog() == DialogResult.Cancel)
                return;

            //MainForm mf = new MainForm();

            TBCC.AlarmSystem.ProjectService.ExportProjectInfo();
            TBCC.MobileSystem.CarProjectService.ExportProjectInfo();
            //TBCC.Data.BackupRestore.ConfigurationManager.ProjectID = "";
            //TBCC.Data.BackupRestore.ConfigurationManager.SetMySqlConnectionString(SqlHelper.GetDBConn());
            //TBCC.Data.BackupRestore.Schedule.GetInstance().Start();



            Application.Run(new MainForm());
        }
    }
}